package com.bifang.common.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import lombok.Data;

@Data
public class TableChangeLogVO implements Serializable {
    @ApiModelProperty(value = "操作日志id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long oplogId;

    @ApiModelProperty(value = "操作类型 10 新增 20 修改 30逻辑删除 31 物理删除")
    private String opType;

    @ApiModelProperty(value = "操作的表")
    private String opTable;

    @ApiModelProperty(value = "老数据")
    private Object oldObj;

    @ApiModelProperty(value = "新增数据")
    private Object newObj;

    @ApiModelProperty(value = "表实体类")
    private Class classType;

    @ApiModelProperty(value = "表mapper类")
    private Class maperClass;

    @ApiModelProperty(value = "唯一字段")
    private String dataField;

    @ApiModelProperty(value = "唯一id")
    private String uniqueValue;
}
